<template>
  <view class="rescue-dialog" @click="closed">
    <view class="rescue-dialog-content" @click.stop="">
      <view class="rescue-dialog-content-title">配件申请规范提示</view>
      <view class="rescue-dialog-content-list">
        <view class="card-content">
          <view class="card_one">
            <view class="top">
              <view class="one_num"><text></text>第1步<text></text></view>
              <view class="one_tit">请选择具体的配件位置-配件名称</view>
            </view>
          
            <view class="one_bg">
              <view class="titles">选择电梯配件</view>
              <view class="partsNumber_input">
                <input
                  type="text"
                  placeholder="门系统"
                  placeholder-style="color:#333"
                  :disabled="true"
                />
                <view class="downs"><text></text></view>
              </view>
              <view class="partsNumber_input">
                <input
                  type="text"
                  placeholder="外呼机"
                  placeholder-style="color:#333"
                  :disabled="true"
                />
              </view>
            </view>
          </view>
          <view class="card_one">
            <view class="arrow_img">
              <image
                src="https://592800-erised-fresh.oss-cn-shenzhen.aliyuncs.com/upload/20230923/10e6dfda265c8024332800a6c8e59d2d.png"
                mode=""
              >
              </image>
            </view>
            <view class="top">
              <view class="one_num"><text></text>第2步<text></text></view>
            <view class="one_tit"
              >根据配件类型填写信息或选择配件信息</view
            >
            </view>
          
            <view class="one_bg">
              <view class="titles">电梯配件规格/型号</view>
              <view class="partsNumber_input">
                <input
                  type="text"
                  placeholder="虏克;LIOP;外呼板"
                  placeholder-style="color:#333"
                  :disabled="true"
                />
              </view>
            </view>
            <view class="one_bg mt-20">
              <view class="titles">选择配件</view>
              <view class="partsNumber_input">
                <input
                    type="text"
                    placeholder="请选择配件信息"
                    placeholder-style="color:#999999"
                    :disabled="true"
                />
                <view class="downs"><text></text></view>
              </view>
              <view class="desc">当前电梯已关联配件信息，请选择或自定义填写</view>
            </view>
          </view>
          <view class="card_one">
            <view class="arrow_img middle-img">
              <image
                src="https://592800-erised-fresh.oss-cn-shenzhen.aliyuncs.com/upload/20230923/8668ab4356cc9aca5f7fcfd8ea494423.png"
                mode=""
              >
              </image>
            </view>
            <view class="top">
              <view class="one_num"><text></text>第3步<text></text></view>
            <view class="one_tit"
              >请填写配件申请的数量</view
            >
            </view>
          
            <view class="one_bg">
              <view class="titles">电梯配件数量</view>
              <view class="numBox">
                <uni-number-box
                  :min="1"
                  :max="100"
                  v-model="num"
                  :disabled="true"
                ></uni-number-box>
              </view>
            </view>
          </view>
          <view class="card_one">
            <view class="arrow_img ">
              <image
              class="smallImg"
                src="https://592800-erised-fresh.oss-cn-shenzhen.aliyuncs.com/upload/20230923/10e6dfda265c8024332800a6c8e59d2d.png"
                mode=""
              >
              </image>
            </view>
            <view class="top">
              <view class="one_num"><text></text>第4步<text></text></view>
            <view class="one_tit"
              >请上传清晰的配件外观、型号或编码等照片</view
            >
            </view>
          
            <view class="one_bg three">
              <view class="three_img">
                <image
                  src="https://592800-erised-fresh.oss-cn-shenzhen.aliyuncs.com/upload/20230923/4641bd1f3d68fe2c88fec85fe7a4094f.png"
                  mode=""
                >
                </image>
                <view>配件外观</view>
              </view>
              <view class="three_img">
                <image
                  src="https://592800-erised-fresh.oss-cn-shenzhen.aliyuncs.com/upload/20230923/5f17154632f643e933c9de7da0c15e94.png"
                  mode=""
                >
                </image>
                <view>型号或编码</view>
              </view>
            </view>
          </view>
        </view>
      </view>
      <view class="footerbtn">
        <view class="btn-circle" @click="circleClick">
          <uni-icons
            :color="circleState ? '#0091ff' : '#ccc'"
            size="18"
            :type="circleState ? 'checkbox-filled' : 'circle'"
          />
          <text :style="circleState ? 'color:#0091ff' : 'color:#ccc'"
            >不再提示</text
          >
        </view>
        <view class="lines"></view>
        <view class="footer-btns" @click.stop="closed"> 已了解 </view>
      </view>
    </view>
  </view>
</template>
<script>
import { hanleToken } from '@/utils/utils.js';
// import uicontainer from "@/components/ui-container/ui-container";
export default {
	components: {},
	props: {
		list: {
			type: Array,
			default: () => {
				return [];
			},
		},
		showTips: {
			type: Boolean,
			default: false,
		},
	},
	watch: {
		showTips(val) {
			this.overflowShow = val;
		},
	},
	data() {
		return {
			circleState: false,
			num: 1,
			overflowShow: false,
			isCanScroll: true,
		};
	},
	methods: {
		closed() {
			this.$emit('closed');
		},
		circleClick() {
			this.circleState = !this.circleState;
			hanleToken('set', 'partsTipsStatus', this.circleState);
		},
		scrolltolower() {
			this.isCanScroll = false;
			console.log('ddddddddddddddd');
		},
		scrolltoupper() {
			this.isCanScroll = false;
		},
	},
};
</script>

<style lang="scss" scoped>
.rescue-dialog {
  width: 100%;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background-color: rgba(0, 0, 0, 0.17);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
@mixin input {
  width: 100%;
  height: 80rpx;
  border: 2rpx solid #e9e9e9;
  border-radius: 4rpx;
  box-sizing: border-box;
  position: relative;
  padding: 20rpx 28rpx;
  box-sizing: border-box;
}

.footerbtn {
  display: flex;
  align-items: center;
  padding: 20rpx;
  background-color: #fff;
  .btn-circle {
   text{
    margin-left: 4rpx;
   }
  }
  .lines {
    height: 60rpx;
    width: 2rpx;
    background: #e9e9e9;
    margin: 0 26rpx;
  }
  .footer-btns {
    width: 400rpx;
    display: flex;
    height: 70rpx;
    justify-content: center;
    align-items: center;
    font-size: 28rpx;
    border-radius: 8rpx;
    background-color: $theme-color;
    color: #fff;
    border-bottom-left-radius: 8rpx;
    border-bottom-right-radius: 8rpx;
  }
}

.rescue-dialog-content {
  // background-color: rgb(206, 239, 252);
  border-radius: 8rpx;
  width: 650rpx;
  height: calc(80vh + 200rpx);
  margin: 0 auto;
  margin-top: 1vh;
  overflow-x: hidden;
  position: relative;

  &-title {
    height: 77rpx;
    display: flex;
    align-items: center;
    font-size: 32rpx;
    color: #333;
    font-weight: bold;
    justify-content: center;
    text-align: center;
    position: sticky;
    top: 0px;
    background-color: #fff;
    border-top-left-radius: 8rpx;
    border-top-right-radius: 8rpx;
  }

  &-list {
    width: 100%;
    max-height: 80vh;
    overflow-y: scroll;
    overflow-x: hidden;
    background: linear-gradient(180deg, #f3f6f8, #dcf0ff);
  }
  .titles {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
  }

  .card-content {
    padding: 10rpx 20rpx;
    background: linear-gradient(180deg, #f3f6f8, #dcf0ff);
    // border-radius: 8rpx;
    position: relative;
    border-top: 2rpx solid #eee;
    height: 100%;
    .card_one {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin: 16rpx 0 16rpx 0;
      position: relative;
      .arrow_img {
        width: 100%;
        position: absolute;
        top: -16rpx;
        left: -2rpx;
        width: 100%;
        image {
          width: 80rpx;
          height: 80rpx;
        }
        .smallImg{
          width: 70rpx;
          height: 70rpx;
        }
      }
      .middle-img {
        text-align: right;
        top: -14rpx;
        right: 4rpx;
      }
      .top{
        height: 116rpx;
        // text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
      }

      .one_num {
        font-size: 14px;
        font-weight: 600;
        color: #0091ff;
        display: flex;
        align-items: center;
        text {
          display: inline-block;
          border: 4rpx #0091ff solid;
          margin: 0 10rpx;
          border-radius: 50%;
        }
      }
      .one_tit {
        margin: 10rpx 0 20rpx 0;
        font-size: 14px;
        font-weight: 600;
        color: #333333;
      }

      .one_bg {
        background-color: #fff;
        border-radius: 8rpx;
        padding: 20rpx;
        width: 558rpx;
        .numBox{
          margin-top: 20rpx;
        }

        .partsNumber_input {
          border: 1px solid #E9E9E9;
          padding: 10rpx 20rpx;
          border-radius: 4rpx;
          position: relative;
          margin: 8rpx 0;
           input{
             //margin: 20rpx 0 0 0;
             position: relative;
           }
        }
        .downs {
          position: absolute;
          right: 20rpx;
          top: 2rpx;
          text {
            display: inline-block;
            width: 16rpx;
            height: 16rpx;
            border-bottom: 2rpx #ccc solid;
            border-left: 2rpx #ccc solid;
            transform: rotate(-45deg);
            margin-top: 18rpx;
          }
        }
      }
      .three {
        display: flex;
        justify-content: space-around;

        .three_img {
          display: flex;
          flex-direction: column;
          align-items: center;
          image {
            width: 216rpx;
            height: 216rpx;
          }
          view {
            color: #999999;
            font-size: 12px;
            margin-top: 10rpx;
          }
        }
      }
    }
  }
}
.desc{
  font-size: 26rpx;
  color: #999999;
}
.mt-20{
  margin-top: 40rpx;
}
</style>
